@extends('layouts.app')

@section('content')
    <div class="row justify-content-center">
        <div class="col-6">
            <div class="card mt-5">
                <div class="card-header text-white bg-primary">
                    百度网盘在线解析
                </div>
                <div class="card-body">
                    <form method="get" action="{{ route('root') }}">
                        <div class="form-group">
                            <input type="text" class="form-control" id="url" name="url"
                                   placeholder="请输入分享链接"
                                   value=""
                            >
                        </div>
                        <div class="form-group">
                            <input type="text" class="form-control" id="pwd" name="pwd"
                                   placeholder="请输入提取码，没有则留空"
                                   value=""
                            >
                        </div>
                        @if(config('pan.showCode'))
                        <div class="form-group">
                            <input type="text" class="form-control" id="code" name="code"
                                   placeholder="请输入激活码"
                                   value=""
                            >
                            <span></span>
                        </div>
                        @endif
                        <button type="submit" class="btn btn-primary btn-block">提交</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
@endsection
@section('script')
    <script src="{{ asset('dist/js/home.js') }}"></script>
@endsection
